package com.etoak.train.mapper;

import com.etoak.train.domain.Passenger;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * @Author by 孙有泽
 * @Date 2025/5/10 13:01
 * @Description 旅客mapper层
 */
public interface PassengerMapper {
    void save(Passenger passenger);

    List<Passenger> queryList(Long memberId);

    void update(Passenger passenger);
    @Delete("delete from passenger where id = #{id}")
    void delete(Long id);
}
